/*
 * Copyright (c) 2020, RudyLo <luhuadong@163.com>
 *
 * SPDX-License-Identifier: MIT License
 *
 * Change Logs:
 * Date           Author       Notes
 * 2020-11-15     luhuadong    the first version
 */

#ifndef __OLED_H__
#define __OLED_H__

#include <_ansi.h>

_BEGIN_STD_C

void ssd1306_DrawBitmap(const uint8_t* bitmap, uint32_t size);
void ssd1306_DrawRegion(uint8_t x, uint8_t y, uint8_t w, uint8_t h, const uint8_t* data, uint32_t size, uint32_t stride);

void ssd1306_bitmap();
void ssd1306_set_main_1(uint32_t temp, uint32_t humi, uint32_t light);
void ssd1306_set_main_2(uint32_t fan, uint32_t ptc, uint32_t hdr);
void show_net_set(uint32_t fan, uint32_t ptc, uint32_t hdr, uint32_t val);

_END_STD_C

#endif // OLED
